package factory.simple_factory;

public class CoffeeStore {
    public Coffee orderCoffee(String type){
        SimpleCoffeeFactory simpleCoffeeFactory = new SimpleCoffeeFactory();
        //调用生产咖啡的方法
        Coffee coffee = simpleCoffeeFactory.createCoffee(type);

        //加配料
        coffee.addMilk();
        coffee.addsuger();

        return coffee;
    }
}
